﻿<HeaderedContentControl x:Class="Munimji.Controls.PanelWithHeader"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <HeaderedContentControl.HeaderTemplate>
        <DataTemplate>
            <Border Background="Gray" VerticalAlignment="Top" Padding="20,3" Margin="0" CornerRadius="10,0,0,10">
                <Grid>
                <TextBlock Text="{Binding}" FontSize="18"/>
                <Button HorizontalAlignment="Right" Background="Transparent">
                    <TextBlock Text=" X "/>
                </Button>
                    </Grid>
            </Border>
        </DataTemplate>
        </HeaderedContentControl.HeaderTemplate>
    <HeaderedContentControl.ContentTemplate>
        <DataTemplate>
            <Border MinHeight="100" MinWidth="100" BorderBrush="Gray" Padding="10">
                <ContentControl Content="{Binding}"/>
            </Border>
            </DataTemplate>
        </HeaderedContentControl.ContentTemplate>
</HeaderedContentControl>
